import {WeaTools} from 'ecCom';

export const url = "/api/govern/base/";
export const setting = "/api/govern/setting/";
export const flow = "/api/govern/flow/";
export const base = "/api/govern/base/";

/////   e9  E9
export const getCategoryGroup = params => {
	return WeaTools.callApi('/api/govern/category/getCategoryGroup', 'GET', params);
}
export const governSetupInit = params => {
    return WeaTools.callApi('/api/govern/category/governSetupInit','GET',params);
}
export const saveProInfo = params => {
    return WeaTools.callApi('/api/govern/pro/saveProInfo','POST',params);
}
export const getProListConditions = params => {
    return WeaTools.callApi('/api/govern/pro/getProListConditions','GET',params);
}
export const getProList = params => {
    return WeaTools.callApi('/api/govern/pro/getProList','GET',params);
}
export const getMatterSearchList = params => {
	return WeaTools.callApi('/api/govern/task/getMyTaskList', 'GET', params);
}
export const getMyTaskList = params => {
	return WeaTools.callApi('/api/govern/task/getMyTaskList', 'GET', params);
}
export const getTaskListConditions = params => {
	return WeaTools.callApi('/api/govern/task/getTaskListConditions', 'GET', params);
}
export const getAttentionTaskList = params => {
	return WeaTools.callApi('/api/govern/task/getAttentionTaskList', 'GET', params);
}
export const getProListResult = params => {
	return WeaTools.callApi('/api/govern/pro/getProListResult', 'GET', params);
}
export const getProAccountResult = params => {
	return WeaTools.callApi('/api/govern/pro/getProAccountResult', 'GET', params);
}
export const getProFeedBack = params => {
	return WeaTools.callApi('/api/govern/pro/getProFeedBack', 'GET', params);
}
export const getTaskInfo = params => {
	return WeaTools.callApi('/api/govern/task/getTaskInfo', 'GET', params);
}
export const getProInfo = params => {
	return WeaTools.callApi('/api/govern/pro/getProInfo', 'GET', params);
}
export const initMind = params => {
	return WeaTools.callApi('/api/govern/base/getMindData', 'GET', params);
}
// export const getReportCondition = params => {
// 	return WeaTools.callApi('/api/govern/base/getReportCondition', 'GET', params);
// }
export const getReportList = params => {
	return WeaTools.callApi('/api/govern/base/getReportList', 'GET', params);
}
export const getLogConditons = params => {
	return WeaTools.callApi('/api/govern/base/getLogConditons', 'GET', params);
}
export const getLogList = params => {
	return WeaTools.callApi('/api/govern/base/getLogList', 'GET', params);
}
export const reportTask = params => {
	return WeaTools.callApi('/api/govern/task/reportTask', 'POST', params);
}
export const decomposeTask = params => {
	return WeaTools.callApi('/api/govern/task/decomposeTask', 'POST', params);
}
export const distributeAll = params => {
	return WeaTools.callApi('/api/govern/task/distributeAll', 'POST', params);
}
export const distribute = params => {
	return WeaTools.callApi('/api/govern/task/distribute', 'POST', params);
}
export const changeTask = params => {
	return WeaTools.callApi('/api/govern/task/changeTask', 'POST', params);
}
export const finishTask = params => {
	return WeaTools.callApi('/api/govern/task/finishTask', 'POST', params);
}
export const cancelTask = params => {
	return WeaTools.callApi('/api/govern/task/cancelTask', 'POST', params);
}
export const signingTask = params => {
	return WeaTools.callApi('/api/govern/task/signingTask', 'POST', params);
}
export const remindTask = params => {
	return WeaTools.callApi('/api/govern/task/remindTask', 'POST', params);
}
export const getDecomposeTaskLayout = params => {
	return WeaTools.callApi('/api/govern/task/getDecomposeTaskLayout', 'GET', params);
}
export const getChangeTaskLayout = params => {
	return WeaTools.callApi('/api/govern/task/getChangeTaskLayout', 'GET', params);
}
export const attentTask = params => {
	return WeaTools.callApi('/api/govern/base/attentTask', 'GET', params);
}
export const getCardBtnInfo = params => {
	return WeaTools.callApi('/api/govern/base/getCardBtnInfo', 'GET', params);
}
export const disAttentTask = params => {
	return WeaTools.callApi('/api/govern/base/disAttentTask', 'GET', params);
}
export const getShareList = params => {
	return WeaTools.callApi('/api/govern/base/getShareList', 'GET', params);
}
export const getAppDetachDisableAll = params => {
	return WeaTools.callApi('/api/govern/base/getAppDetachDisableAll', 'GET', params);
}
export const addShare = params => {
	return WeaTools.callApi('/api/govern/base/addShare', 'POST', params);
}
export const delBatchShare = params => {
	return WeaTools.callApi('/api/govern/base/delBatchShare', 'POST', params);
}
export const docPreview = params => {
	return WeaTools.callApi('/api/govern/task/docPreview', 'POST', params);
}
export const getInstructList = params => {
	return WeaTools.callApi('/api/govern/base/getInstructList', 'GET', params);
}
export const saveInstruct = params => {
	return WeaTools.callApi('/api/govern/base/saveInstruct', 'POST', params);
}
export const deleteInstruct = params => {
	return WeaTools.callApi('/api/govern/base/deleteInstruct', 'POST', params);
}
export const getActionSetting = params => {
	return WeaTools.callApi('/api/govern/task/getActionSetting', 'GET', params);
}
export const getTreeDatas = params => {
	return  WeaTools.callApi('/api/govern/category/getCategoryTree', 'GET', params);
}
export const getTaskStatistics = params => {
	return  WeaTools.callApi('/api/govern/task/getTaskStatistics', 'GET', params);
}
export const getBatchImportInfo = params => {
	return  WeaTools.callApi('/api/govern/base/getBatchImportInfo', 'POST', params);
}
export const doImport = params => {
	return  WeaTools.callApi('/api/govern/base/doImport', 'POST', params);
}
export const getImportErrorMsg = params => {
	return  WeaTools.callApi('/api/govern/base/getImportErrorMsg', 'GET', params);
}
export const getTaskRight = params => {
	return  WeaTools.callApi('/api/govern/task/getTaskRight', 'GET', params);
}
export const exportAccount = params => {
	return  WeaTools.callApi('/api/govern/task/exportProAccountExcel', 'GET', params);
}
export const getRichTextInfo = params => {
	return  WeaTools.callApi('/api/govern/base/getRichTextInfo', 'GET', params);
}
export const getLeaderCommentType = params => {
	return  WeaTools.callApi('/api/govern/task/getLeaderCommentType', 'GET', params);
}
export const checkRightMenuBtn = params => {
	return WeaTools.callApi('/api/govern/task/checkRightMenuBtn', 'GET', params);
}
export const isCanCancel = params => {
	return WeaTools.callApi('/api/govern/task/isCanCancel', 'GET', params);
}
export const getProjectCount = params => {
    return WeaTools.callApi('/api/govern/pro/getProjectCount', 'GET', params);
}
export const deleteTask = params => {
	return WeaTools.callApi('/api/govern/task/d/task', 'POST', params);
}
export const getTaskAccount = params => {
	return WeaTools.callApi('/api/govern/task/taskAccount', 'GET', params);
}
export const reopenTask = params => {
	return WeaTools.callApi('/api/govern/task/reopenTask', 'POST', params);
}
export const getIsTreeShow = params => {
	return  WeaTools.callApi('/api/govern/category/getIsTreeShow', 'GET', params);
}